// 例子8：
{
    try {
        let [foo] = 1; // Uncaught TypeError: 1 is not iterable
    } catch (e) {
        console.error(e)
    }
}

console.log('----------------------------------');

{
    try {
        let [foo] = false; // Uncaught TypeError: false is not iterable
    } catch (e) {
        console.error(e)
    }
}

console.log('----------------------------------');

{
    try {
        let [foo] = NaN; // Uncaught TypeError: NaN is not iterable
    } catch (e) {
        console.error(e)
    }
}

console.log('----------------------------------');

{
    try {
        let [foo] = undefined; // Uncaught TypeError: undefined is not iterable
    } catch (e) {
        console.error(e)
    }
}

console.log('----------------------------------');

{
    try {
        let [foo] = null; // Uncaught TypeError: null is not iterable
    } catch (e) {
        console.error(e)
    }
}

console.log('----------------------------------');

{
    try {
        let [foo] = {}; // Uncaught TypeError: {} is not iterable
    } catch (e) {
        console.error(e)
    }
}